<fieldset class="layui-elem-field layui-field-title">
    <legend>
    <span class="layui-breadcrumb">
        <a href="javascript:;">玩家信息</a>
        <a><cite>游戏记录</cite></a>
    </span>
    </legend>
</fieldset>

<table id="play_record_table" class="layui-table">
    <thead>
    <tr>
        <th><input type="checkbox" class="my-checkbox" /></th>
        <th>序号</th>
        <th>游戏时间</th>
        <th>所在房间</th>
        <th>所在桌子</th>
        <th>输赢记录</th>
        {{-- <th>在线时长</th> --}}
    </tr>
    </thead>
    <tbody>
    @foreach($play_records as $key => $record)
        <tr>
            <td><input type="checkbox" class="my-checkbox" data-id="{{ $record->id }}" /></td>
            <td>{{ $key+1 }}</td>
            <td>{{ $record->result_time }}</td>
            <td>@if(empty($record->room->room_name)) 房间已被删除 @else {{ $record->room->room_name }}@endif</td>
            <td>{{ $record->table_id }}</td>
            <td>{{ $record->win_jeton }}</td>
            {{-- <td>{{ $record->duration }}</td> --}}
        </tr>
    @endforeach
    </tbody>
</table>